package com.azier.kapacitor.script;

import com.azier.kapacitor.script.node.StreamNode;

/**
 * 1 * @Author: luoj
 * 2 * @Date: 2019/11/8 10:59
 * 3
 */
public class Stream {

    //Stream.quite().from().database("").
    private StreamNode streamNode;

    public Stream(StreamNode streamNode){
        this.streamNode = streamNode;
    }

    public StreamNode getStreamNode() {
        return streamNode;
    }

    public static Stream stream(){
        return new Stream(new StreamNode());
    }

    public String getScript(){
        return this.streamNode.getScript();
    }
}
